export function TMap(key) {
          return new Promise(function (resolve, reject) {
               window.init = function () {
              resolve(qq)//注意这里
         }
        var script = document.createElement("script");
        script.type = "text/javascript";
        script.src = "http://map.qq.com/api/js?v=2.exp&callback=init&key=G6YBZ-H2SRI-CSTGJ-53JRS-3I4K5-L4BCK";
        script.onerror = reject;
        document.head.appendChild(script);
      })
    }